]> dgit.raspbian.org Git - vtk9.git/commitdiff
fix invalid escape sequence in testing.py
authorDominique Belhachemi <db@domibel.de>
Tue, 13 Oct 2026 10:08:50 +0000 (12:08 +0200)
committerMaximiliano Curia <maxy@debian.org>
Tue, 13 Oct 2026 10:08:50 +0000 (12:08 +0200)
Origin: upstream, https://gitlab.kitware.com/vtk/vtk/-/commit/c0ec1384318bf93c0d2e8b046f702860d4a3195c
Bug-Debian: https://bugs.debian.org/1142155
Bug-Debian: https://bugs.debian.org/1079541

Gbp-Pq: Name fix_invalid_escape_sequence_testing.patch

Web/Python/vtkmodules/web/testing.py

index 8b74de5b75546c87ded5936fcc686af0b70ccbb3..cae6823cd978c3462fbc8ab3eb75e6f8521fcc6d 100644 (file)
@@ -684,7 +684,7 @@ def launch_web_test(*args, **kwargs):
     # The test name will be generated from the python script name, so
     # match and capture a bunch of contiguous characters which are
     # not '.', '\', or '/', followed immediately by the string '.py'.
-    fnamePattern = re.compile("([^\.\/\\\]+)\.py")
+    fnamePattern = re.compile(r"([^./\\]+)\.py")
     fmatch = re.search(fnamePattern, testScriptFile)
     if fmatch:
         testName = fmatch.group(1)